package com.qtenv.datasync.service.controller;


import com.qtenv.datasync.base.Result;
import com.qtenv.datasync.service.service.DfqFreezeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 大分区冻结数据 前端控制器
 * </p>
 *
 * @author CBL
 * @since 2022-08-03
 */
@RestController
@RequestMapping("/dfq/freeze")
public class DfqFreezeController {
    @Autowired
    private DfqFreezeService dfqFreezeService;

    @GetMapping("/getZoneSupplyDataList")
    public Result<?> getZoneSupplyDataList(@RequestParam("tenantId") String tenantId, @RequestParam("areaId") String areaId) {
        return Result.ok(dfqFreezeService.getZoneSupplyDataList(tenantId, areaId));
    }
}
